package com.jcf.springboot.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jcf.springboot.entity.business.FilmInfo;
import com.jcf.springboot.entity.business.vo.QueryVo;
import com.jcf.springboot.mapper.FilmInfoMapper;
import com.jcf.springboot.service.FilmInfoService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author jjj
 * @since 2021-03-25
 */
@Service
public class FilmInfoServiceImpl extends ServiceImpl<FilmInfoMapper, FilmInfo> implements FilmInfoService {

    @Resource
    private FilmInfoMapper filmInfoMapper;
    @Override
    public List<FilmInfo> getByMoreTable(QueryVo queryVo) {
        return filmInfoMapper.getList(queryVo);
    }

    @Override
    public int saveDirector(String directorName) {
        return filmInfoMapper.saveDirector(directorName);
    }

    @Override
    public FilmInfo getFilmById(String id) {
        return this.baseMapper.getFilmById(id);
    }
}
